<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Slider Control</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ui-controls-spin.setvalue.html">« UI\Controls\Spin::setValue</a></li>
      <li style="float: right;"><a href="ui-controls-slider.construct.html">UI\Controls\Slider::__construct »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.ui.html">UI</a></li>
    <li>Slider Control</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.ui-controls-slider" class="reference">

 <h1 class="title">Slider Control</h1>
 

 <div class="partintro"><p class="verinfo">(UI 0.9.9)</p>


  <div class="section" id="ui-controls-slider.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    A Slider is a control which represents a range, and a current value in the range. The sliding element of the control (sometimes called the &quot;thumb&quot;) reflects the value, and can be adjusted within the range.
   </p>
  </div>


  <div class="section" id="ui-controls-slider.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">UI\Controls\Slider</strong>
     </span>
     
     <span class="ooclass">
      <span class="modifier">extends</span>
       <a href="class.ui-control.html" class="classname">UI\Control</a>
     </span>
     {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constructor */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="ui-controls-slider.construct.html" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$min</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$max</code></span>)</div>
    

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-controls-slider.getvalue.html" class="methodname">getValue</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">protected</span> <span class="methodname"><a href="ui-controls-slider.onchange.html" class="methodname">onChange</a></span>()</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-controls-slider.setvalue.html" class="methodname">setValue</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$value</code></span>)</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的方法 */</div>
    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.destroy.html" class="methodname">UI\Control::destroy</a></span>()</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.disable.html" class="methodname">UI\Control::disable</a></span>()</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.enable.html" class="methodname">UI\Control::enable</a></span>()</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.getparent.html" class="methodname">UI\Control::getParent</a></span>(): <span class="type"><a href="class.ui-control.html" class="type UI\Control">UI\Control</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.gettoplevel.html" class="methodname">UI\Control::getTopLevel</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.hide.html" class="methodname">UI\Control::hide</a></span>()</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.isenabled.html" class="methodname">UI\Control::isEnabled</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.isvisible.html" class="methodname">UI\Control::isVisible</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.setparent.html" class="methodname">UI\Control::setParent</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-control.html" class="type UI\Control">UI\Control</a></span> <code class="parameter">$parent</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-control.show.html" class="methodname">UI\Control::show</a></span>()</div>


   }</div>


  </div>

 </div>

 





























<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ui-controls-slider.construct.html">UI\Controls\Slider::__construct</a> — Construct a new Slider</li><li><a href="ui-controls-slider.getvalue.html">UI\Controls\Slider::getValue</a> — Get Value</li><li><a href="ui-controls-slider.onchange.html">UI\Controls\Slider::onChange</a> — Change Handler</li><li><a href="ui-controls-slider.setvalue.html">UI\Controls\Slider::setValue</a> — Set Value</li></ul>
</div>
</div></div></body></html>